//
//  WHEvaluatingTableViewCell.m
//  ShiWuPai
//
//  Created by app on 16/11/28.
//  Copyright © 2016年 QQ:244987427. All rights reserved.
//

#import "WHEvaluatingTableViewCell.h"
#import <UIKit+AFNetworking.h>
@implementation WHEvaluatingTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setFeed:(WHFeed *)feed{
    self.sourceLable.text=feed.source;
    self.titleLable.text=feed.title;
    self.tailLable.text=feed.tail;
    [self.backgroundImageView setImageWithURL:[NSURL URLWithString:feed.background] placeholderImage:nil];
    if (feed.images.count>1) {
        [self.firstPictureImageView setImageWithURL:[NSURL URLWithString:feed.images[0]] placeholderImage:nil];
        [self.sceondPictureImageView setImageWithURL:[NSURL URLWithString:feed.images[1]] placeholderImage:nil];
        [self.thirdPictureImageView setImageWithURL:[NSURL URLWithString:feed.images[2]] placeholderImage:nil];
    }
    
    if(feed.images.count==1){
        [self.pictureIamgeView setImageWithURL:[NSURL URLWithString:feed.images[0]] placeholderImage:nil];
    }
}
@end
